class AddDescriptionHtml < ActiveRecord::Migration
  def self.up
    rename_column :projects, :description, :description_markdown
    add_column    :projects, :description_html, :text
    
    rename_column :milestones, :description, :description_markdown
    add_column    :milestones, :description_html, :text
    
    rename_column :tasks, :description, :description_markdown
    add_column    :tasks, :description_html, :text
  end

  def self.down
    rename_column :projects, :description_markdown, :description
    remove_column :projects, :description_html
    
    rename_column :milestones, :description_markdown, :description
    remove_column :milestones, :description_html
    
    rename_column :tasks, :description_markdown, :description
    remove_column :tasks, :description_html
  end
end
